﻿<?xml version="1.0" encoding="utf-8" ?>
<Configuration>
  <Service>
    <!--<Url>http://localhost.fiddler:81/api/media/player</Url>-->
    <Url>http://10.200.150.22:81/api/media/player</Url>
    <WCF>0</WCF>
    <relative>0</relative>
    <binaryBinding>0</binaryBinding>
    <compression>0</compression>
    <serializationFormat>json</serializationFormat>
    <maxOpenTimeSeconds>5</maxOpenTimeSeconds>
    <maxSendTimeSeconds>5</maxSendTimeSeconds>
    <maxRecvTimeSeconds>5</maxRecvTimeSeconds>
    <version>3</version>
  </Service>
  <Diagnostics>
    <AggregationIntervalMilliseconds>15000</AggregationIntervalMilliseconds>
    <SnapshotIntervalMilliseconds>1000</SnapshotIntervalMilliseconds>
    <TrackQuality>1</TrackQuality>
    <TrackDownloadErrors>1</TrackDownloadErrors>
    <TrackQualitySnapshot>1</TrackQualitySnapshot>
    <LatencyAlertThreshold>2</LatencyAlertThreshold>
    <RecordTraceLogs>1</RecordTraceLogs>
    <!--omit this node to track everything-->
    <!--<QualityTracking>
        <DroppedFrames>1</DroppedFrames>
        <RenderedFrames>1</RenderedFrames>
        <ProcessCPULoad>1</ProcessCPULoad>
        <SystemCPULoad>1</SystemCPULoad>
        <Bitrate>1</Bitrate>
        <BitrateMax>1</BitrateMax>
        <BitrateMaxDuration>1</BitrateMaxDuration>
        <PerceivedBandwidth>1</PerceivedBandwidth>
        <VideoBufferSize>1</VideoBufferSize>
        <AudioBufferSize>1</AudioBufferSize>
        <Buffering>1</Buffering>
        <BitrateChangeCount>1</BitrateChangeCount>
        <VideoDownloadLatency>1</VideoDownloadLatency>
        <AudioDownloadLatency>1</AudioDownloadLatency>
        <DvrOperationCount>1</DvrOperationCount>
        <FullScreenChangeCount>1</FullScreenChangeCount>
        <HttpErrorCount>1</HttpErrorCount>
      </QualityTracking>-->
  </Diagnostics>
  <BatchingConfig>
    <Application>
      <Id>{D836AA9A-935D-4A42-B641-E738B65CF9EB}</Id>
      <Name>Logging Win8 JS Sample</Name>
      <Version>1.0</Version>
      <Enabled>1</Enabled>
    </Application>
    <Queue>
      <maxLength>200</maxLength>
      <maxBatchLength>10</maxBatchLength>
      <maxSendErrors>60</maxSendErrors>
      <maxSendErrorsThrottled>10</maxSendErrorsThrottled>
      <pollingIntervalSeconds>10</pollingIntervalSeconds>
      <pollingIntervalThrottledSeconds>120</pollingIntervalThrottledSeconds>
      <maxRetries>6</maxRetries>
    </Queue>
    <Session>
      <maxSessionLogs>100000</maxSessionLogs>
    </Session>
    <MappingRules>
      <Log Type="Batch">
        <Value Name="ApplicationName" Id="app" />
        <Value Name="ApplicationId" Id="aid" />
        <Value Name="SessionId" Id="sid" />
        <Value Name="InstanceId" Id="cid" />
        <Value Name="BatchId" Id="bid" />
        <!--<Value Name="ApplicationVersion" Id="apv" />-->
        <!--<Value Name="LogsDropped" Id="ldp" />-->
        <!--<Value Name="LogsSent" Id="lst" />-->
        <!--<Value Name="TotalFailures" Id="ttf" />-->
        <!--<Value Name="TimeStamp" Id="tik" />-->
        <!--<Value Name="Type" Id="typ" />-->
      </Log>
      <!--application logs-->
      <Log Type="CustomLog" Id="CustomLog">
        <Value Name="Type" Id="typ" />
        <Value Name="LogId" Id="lid" />
        <Value Name="TimeStamp" Id="tik" />
        <Value Name="CustomProperty" Id="s01" />
        <Value Name="CustomPropertyNumber" Id="s02" />
        <Value Name="CustomPropertyBool" Id="s03" />
      </Log>
      <Log Type="AdEvent" Id="AdEvent">
        <Value Name="Type" Id="typ" />
        <Value Name="LogId" Id="lid" />
        <Value Name="TimeStamp" Id="tik" />
        <Value Name="TrackingType" Id="s01" />
        <Value Name="MediaSource" Id="s02" />
        <Value Name="MediaSourceType" Id="s03" />
        <Value Name="CreativeExtraInfo" Id="s04" />
        <Value Name="CreativeSourceType" Id="s05" />
        <Value Name="CreativeId" Id="s06" />
        <Value Name="CurrentPosition" Id="s07" />
      </Log>
      <Log Type="ApplicationException" Id="ApplicationException">
        <Value Name="Type" Id="typ" />
        <Value Name="LogId" Id="lid" />
        <Value Name="Message" Id="msg" Optional="1" />
        <Value Name="TimeStamp" Id="tik" />
        <Value Name="ApplicationArea" Id="s01" />
      </Log>
      <Log Type="ApplicationSessionStart" Id="ApplicationSessionStart">
        <Value Name="Type" Id="typ" />
        <Value Name="LogId" Id="lid" />
        <Value Name="TimeStamp" Id="tik" />
        <Value Name="StartupParam" Id="s01" Optional="1" />
      </Log>

      <!--video logs-->
      <Log Type="AudioTrackSelect" Id="AudioTrackSelect">
        <Value Name="Type" Id="typ" />
        <Value Name="LogId" Id="lid" />
        <Value Name="RelatedLogId" Id="rid" Optional="1" />
        <Value Name="TimeStamp" Id="tik" />
        <Value Name="VideoId" Id="oid" />
        <Value Name="VideoSessionId" Id="osd" />
        <Value Name="VideoSessionDuration" Id="odr" />
        <Value Name="Language" Id="msg" />
      </Log>
      <Log Type="CaptionTrackSelect" Id="ClosedCaptionOn" Conditions="Language=*">
        <Value Name="Type" Id="typ" />
        <Value Name="LogId" Id="lid" />
        <Value Name="RelatedLogId" Id="rid" Optional="1" />
        <Value Name="TimeStamp" Id="tik" />
        <Value Name="VideoId" Id="oid" />
        <Value Name="Language" Id="msg" />
      </Log>
      <Log Type="CaptionTrackSelect" Id="ClosedCaptionOff" Conditions="Language=">
        <Value Name="Type" Id="typ" />
        <Value Name="LogId" Id="lid" />
        <Value Name="RelatedLogId" Id="rid" Optional="1" />
        <Value Name="TimeStamp" Id="tik" />
        <Value Name="VideoId" Id="oid" />
      </Log>
      <Log Type="FullScreenChanged" Id="FullScreenEntered" Conditions="IsFullScreen=1">
        <Value Name="Type" Id="typ" />
        <Value Name="LogId" Id="lid" />
        <Value Name="RelatedLogId" Id="rid" Optional="1" />
        <Value Name="TimeStamp" Id="tik" />
        <Value Name="VideoId" Id="oid" />
      </Log>
      <Log Type="FullScreenChanged" Id="FullScreenExit" Conditions="IsFullScreen=0">
        <Value Name="Type" Id="typ" />
        <Value Name="LogId" Id="lid" />
        <Value Name="RelatedLogId" Id="rid" Optional="1" />
        <Value Name="TimeStamp" Id="tik" />
        <Value Name="VideoId" Id="oid" />
      </Log>
      <Log Type="ChunkDownloadErrors" Id="ChunkDownloadError">
        <Value Name="Type" Id="typ" />
        <Value Name="LogId" Id="lid" />
        <Value Name="RelatedLogId" Id="rid" Optional="1" />
        <Value Name="TimeStamp" Id="tik" />
        <Value Name="VideoId" Id="oid" />
        <Value Name="VideoSessionId" Id="osd" />
        <Value Name="VideoSessionDuration" Id="odr" />
        <Value Name="EdgeIP" Id="s03" />
        <Value Name="SamplingWindowSeconds" Id="s04" />
        <Value Name="ChunkId" Id="s01" />
        <Value Name="StartTime" Id="s02" />
        <Value Name="StreamType" Id="s05" />
        <Value Name="DownloadErrorCount" Id="s06" />
        <Value Name="IsLive" Id="liv" />
      </Log>
      <Log Type="StreamFailed" Id="MediaFailed">
        <Value Name="Type" Id="typ" />
        <Value Name="LogId" Id="lid" />
        <Value Name="RelatedLogId" Id="rid" Optional="1" />
        <Value Name="Reason" Id="msg" Optional="1" />
        <Value Name="TimeStamp" Id="tik" />
        <Value Name="VideoId" Id="oid" />
        <Value Name="VideoSessionId" Id="osd" />
        <Value Name="VideoSessionDuration" Id="odr" />
        <Value Name="EdgeIP" Id="s03" />
        <Value Name="IsLive" Id="liv" />
      </Log>
      <Log Type="ClipEvent" Id="VideoClipStarted" Conditions="ClipEventType=Started">
        <Value Name="Type" Id="typ" />
        <Value Name="LogId" Id="lid" />
        <Value Name="RelatedLogId" Id="rid" Optional="1" />
        <Value Name="TimeStamp" Id="tik" />
        <Value Name="VideoId" Id="oid" />
        <Value Name="VideoSessionId" Id="osd" />
        <Value Name="VideoSessionDuration" Id="odr" />
        <Value Name="IsLive" Id="liv" />
      </Log>
      <Log Type="ClipEvent" Id="VideoClipEnded" Conditions="ClipEventType=Ended">
        <Value Name="Type" Id="typ" />
        <Value Name="LogId" Id="lid" />
        <Value Name="RelatedLogId" Id="rid" Optional="1" />
        <Value Name="TimeStamp" Id="tik" />
        <Value Name="VideoId" Id="oid" />
        <Value Name="VideoSessionId" Id="osd" />
        <Value Name="VideoSessionDuration" Id="odr" />
        <Value Name="IsLive" Id="liv" />
      </Log>
      <Log Type="StreamLoaded" Id="VideoStarted">
        <Value Name="Type" Id="typ" />
        <Value Name="LogId" Id="lid" />
        <Value Name="TimeStamp" Id="tik" />
        <Value Name="VideoId" Id="oid" />
        <Value Name="VideoSessionId" Id="osd" />
        <Value Name="VideoSessionDuration" Id="odr" />
        <Value Name="EdgeIP" Id="s03" />
        <Value Name="Source" Id="url" />
        <Value Name="IsLive" Id="liv" />
      </Log>
      <Log Type="StreamEvent" Id="VideoEnded" Conditions="StreamEventType=Ended">
        <Value Name="Type" Id="typ" />
        <Value Name="LogId" Id="lid" />
        <Value Name="RelatedLogId" Id="rid" Optional="1" />
        <Value Name="TimeStamp" Id="tik" />
        <Value Name="VideoId" Id="oid" />
        <Value Name="VideoSessionId" Id="osd" />
        <Value Name="VideoSessionDuration" Id="odr" />
        <Value Name="IsLive" Id="liv" />
      </Log>
      <Log Type="VideoQuality" Id="VideoQuality">
        <Value Name="Type" Id="typ" />
        <Value Name="LogId" Id="lid" />
        <Value Name="RelatedLogId" Id="rid" Optional="1" />
        <Value Name="TimeStamp" Id="tik" />
        <Value Name="VideoId" Id="oid" />
        <Value Name="VideoSessionId" Id="osd" />
        <Value Name="VideoSessionDuration" Id="odr" />
        <Value Name="EdgeIP" Id="s03" />
        <Value Name="SamplingWindowSeconds" Id="s04" />
        <Value Name="BitRate" Id="s05" />
        <Value Name="BitRateChangeCount" Id="s06" />
        <Value Name="BufferingMilliseconds" Id="s07" />
        <Value Name="DroppedFrames" Id="s08" />
        <Value Name="RenderedFrames" Id="s09" />
        <Value Name="HttpErrorCount" Id="s10" />
        <Value Name="VideoDownloadLatencyMilliseconds" Id="s11" />
        <Value Name="MaxBitRate" Id="s12" />
        <Value Name="MaxBitRateMilliseconds" Id="s13" />
        <Value Name="AudioDownloadLatencyMilliseconds" Id="s14" />
        <Value Name="PerceivedBandwidth" Id="s15" />
        <Value Name="VideoBufferSize" Id="s16" />
        <Value Name="AudioBufferSize" Id="s17" />
        <Value Name="DvrOperationCount" Id="s18" />
        <Value Name="FullScreenChangeCount" Id="s19" />
        <Value Name="IsLive" Id="liv" />
      </Log>

    </MappingRules>
  </BatchingConfig>
</Configuration>